package pl.edu.agh.solid;

public class FaceEdge {

	public FaceEdge(float[] v1, float[] v2) {

		vertices = new Vertex[2];
		vertices[0] = new Vertex(v1[0], v1[1], v1[2]);
		vertices[1] = new Vertex(v2[0], v2[1], v2[2]);
		
	}
	

	
	
	
	final Vertex [] vertices;

	public Vertex[] getVertices() {
		return vertices;
	}
	
	boolean equals(FaceEdge fe) {
		
		Vertex u1 = fe.getVertices()[0];
		Vertex u2 = fe.getVertices()[1];
		
		return  (u1.equals(vertices[0]) && u2.equals(vertices[1]) || 
				(u2.equals(vertices[0]) && u1.equals(vertices[1])));
		
	}
	
	
}
